# 数据容器文件

import scrapy

class SpiderItem(scrapy.Item):
    pass

class JdphoneItem(scrapy.Item):
    # 链接
    url = scrapy.Field()
    # 标题
    title = scrapy.Field()
    # 图片
    img = scrapy.Field()
    # 价格1
    price1 = scrapy.Field()
    # 价格2
    price2 = scrapy.Field()
    # 销量
    sales = scrapy.Field()
    # 评价数量
    evaluation = scrapy.Field()
    # 店铺
    store = scrapy.Field()
    # 店铺链接
    storelink = scrapy.Field()
    # 关键词
    keyword = scrapy.Field()
    # 评论1
    discuss1 = scrapy.Field()
    # 评论2
    discuss2 = scrapy.Field()
    # 评论3
    discuss3 = scrapy.Field()
    # 评论4
    discuss4 = scrapy.Field()
    # 评论5
    discuss5 = scrapy.Field()

class PhoneproductItem(scrapy.Item):
    # 品牌
    brandname = scrapy.Field()
    # 标题
    title = scrapy.Field()
    # 图片
    imgurl = scrapy.Field()
    # 价格
    jiage = scrapy.Field()
    # 店铺
    shopname = scrapy.Field()
    # 评论描述
    commenttext = scrapy.Field()
    # 评论数
    commentnum = scrapy.Field()
    # 商品ID
    goodsid = scrapy.Field()
    # 详情页
    detailurl = scrapy.Field()

class CommentinfoItem(scrapy.Item):
    # 产品名称
    referencename = scrapy.Field()
    # 产品ID
    referenceid = scrapy.Field()
    # 机身颜色
    productcolor = scrapy.Field()
    # 内存大小
    productsize = scrapy.Field()
    # 评论人
    nickname = scrapy.Field()
    # 头像
    imgurl = scrapy.Field()
    # 地点
    location = scrapy.Field()
    # 评论内容
    plcontent = scrapy.Field()
    # 评论时间
    pltime = scrapy.Field()
    # 好评度
    goodrate = scrapy.Field()
    # 追评
    aftercount = scrapy.Field()
    # 好评
    goodcount = scrapy.Field()
    # 中评
    generalcount = scrapy.Field()
    # 差评
    poorcount = scrapy.Field()

